<template>
  <div>
    <el-table :data="tableData" style="width: 100%" max-height="320">
      <el-table-column prop="date" label="类型" width="300px" />
      <el-table-column prop="message" label="消息" width="300px" />
      <el-table-column prop="name" label="开始日期" width="300px" />
      <el-table-column prop="address" label="结束日期" width="300px" />
    </el-table>
    <div class="pagination">
      <el-pagination background layout="prev, pager, next" :total="100" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: 'xxxxx',
          name: 'xxxxx',
          message: '报警消息',
          address: 'xxxxx'
        },
        {
          date: 'xxxxx',
          message: '报警消息',
          name: 'xxxxx',
          address: 'xxxxx'
        },
        {
          date: 'xxxxx',
          message: '报警消息',
          name: 'xxxxx',
          address: 'xxxxx'
        },
        {
          date: 'xxxxx',
          message: '报警消息',
          name: 'xxxxx',
          address: 'xxxxx'
        }
      ]
    }
  }
}
</script>
<style scoped>
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
</style>
